package laya.util;

public class SerialNoFactory8B extends SerialNoFactory
{
	public SerialNoFactory8B(ProductCode8B oCode, long nKey, String strSample)
	{
		super(oCode, nKey, strSample);
	}
	
	public long hashCodeOpt()
	{
		long sum = 0;
		long multiple = m_nKey;
		long index = 1;

		for (int i = 0; i < m_vOpt.length; i++)
		{
			sum += multiple * index++ * m_vOpt[i];
			multiple *= m_nKey;
		}
		
		return(sum);
    }
    
}